package com.zlm.tools.listener;

import com.zlm.tools.event.RandomEvent;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * {@code }
 *
 * @author zlm
 * @since 2025/5/30
 */
@Component
public class RandomListener {

    @EventListener
    public void onRandom(RandomEvent randomEvent){
        System.out.println("RandomListener 监听到事件");
        System.out.println(randomEvent);
    }
}
